/* TDP SmartRepair PAC3 */

package edu.uoc.tdp.pac3.common;


import javax.swing.JOptionPane;

import edu.uoc.tdp.pac3.common.TDSLanguageUtils;

public class SmartRepairException extends Exception{

	
//	public static final String ERR_N = TDSLanguageUtils.getMessage("");
	//public static final String ERR_ = TDSLanguageUtils.getMessage("");
    
	
	public static final String ERROR_REMOT = TDSLanguageUtils.getMessage("ERROR_REMOT");
	public static final String ERROR_NOT_BOUND = TDSLanguageUtils.getMessage("ERROR_NOT_BOUND");
	public static final String ERROR_EXCEPTION = TDSLanguageUtils.getMessage("ERROR_EXCEPTION");
	public static final String EXCEPCIO_INESPERADA = TDSLanguageUtils.getMessage("EXCEPCIO_INESPERADA");
	
	public static final String ERR_REMOT = TDSLanguageUtils.getMessage("ERR_REMOT");
	public static final String ERR_REG_RMI = TDSLanguageUtils.getMessage("ERR_REG_RMI");
	public static final String MISS_SENSE_DADES = TDSLanguageUtils.getMessage("MISS_SENSE_DADES");

	
	private static final long serialVersionUID = 1L;

	
	
	
	/**
	 * Constructor sense parametres
	 */
	public SmartRepairException(){
		JOptionPane.showMessageDialog(null, EXCEPCIO_INESPERADA, "Error", 0);

	}
	
	/**
	 * Constructor amb el parametre del text del missatge
	 */
	public SmartRepairException(String msg){
		JOptionPane.showMessageDialog(null, msg, "Error", 0);
	}

	
	
}
